<h1>Editing room</h1>

<%= error_messages_for :room %>

<% form_for(:room, :url => room_path(@room), :html => { :method => :put }) do |f| %>
  <p>
    <b>Nom de la salle</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <%= submit_tag "Modifier" %>
  </p>
<% end %>

<%= link_to 'Afficher', room_path(@room) %> |
<%= link_to 'Retour', rooms_path %>